export enum DictType {
    SEX = 'sex',
    HTTP_METHOD = 'httpMethod',
    YES_OR_NO = 'yesOrNo',
    LOG_OPERATE_TYPE = 'logOperateType',
    EXECUTE_STATUS = 'executeStatus',
}

export enum RegisterExecuteStatus {
    DOWN_LINE = 0,
    EXCEPTION = 1,
    NORMAL = 2,
}

export const DictInfo = {
    userStatus: [
        {
            key: 1,
            label: '启用',
        },
        {
            key: 2,
            label: '禁用',
        },
    ],
    registerExecuteStatus: [
        {
            key: 0,
            label: '下线',
        },
        {
            key: 1,
            label: '异常',
        },
        {
            key: 2,
            label: '正常',
        },
    ],
    yesOrNo: [
        {
            key: 1,
            label: '是',
        },
        {
            key: 0,
            label: '否'
        }
    ],
    taskType: [
        {
            key: 1,
            label: '预检',
        },
        {
            key: 2,
            label: '采数',
        },
    ],
    groupExecuteStatus: [
        {
            key: -2,
            label: '已禁用',
        },
        {
            key: -1,
            label: '执行失败',
        },
        {
            key: 1,
            label: '待执行',
        },
        {
            key: 2,
            label: '执行中',
        },
        {
            key: 3,
            label: '执行完成',
        },
    ],
    executeStatus: [
        {
            key: 1,
            label: '待执行',
        },
        {
            key: 2,
            label: '执行中',
        },
        {
            key: 3,
            label: '已完成',
        },
        {
            key: 4,
            label: '已失败',
        },
    ],
    dbType: [
        {
            key: 1,
            label: 'mysql',
        },
        {
            key: 2,
            label: 'oracle',
        },
    ],
    targetOperateType: [
        {
            key: 1,
            label: '添加',
        },
        {
            key: 2,
            label: '添加或更新',
        },
        {
            key: 3,
            label: '更新',
        },
        {
            key: 4,
            label: '删除',
        },
    ],
    taskStatus: [
        {
            key: -1,
            label: '已禁用',
        },
        {
            key: 1,
            label: '已启动',
        },
    ],
    groupExecuteType: [
        {
            key: 1,
            label: 'corn表达式',
        },
        {
            key: 2,
            label: '循环',
        },
    ]
}